﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework;

namespace Arcadium.GameEntities.Projectiles
{
    abstract class UpdatableProjectile : Projectile
    {
        #region Field

        protected Vector2 previousPosition;
        protected Vector2 velocity;

        protected float damage = 1;

        #endregion

        #region Properties
        
        public override int Direction
        {
            get { return (int)(velocity.X / Math.Abs(velocity.X)); }
            set { throw new InvalidOperationException("Can't set direction. Change velocity."); }
        }

        #endregion

        #region Initialization

        public UpdatableProjectile(World world, NetworkGamer shooter, Vector2 position, Vector2 velocity)
            : base(world, shooter, position)
        {
            this.previousPosition = position;
            this.velocity = velocity;
        }
        
        #endregion

    }
}
